using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using System.Data;
namespace ERP.Reports
{
    public partial class rptSodo : DevExpress.XtraReports.UI.XtraReport
    {
        //public DataTable ds_BaoCao = null;
        public DataTable dsHoadon = null;

        public rptSodo()
        {
            InitializeComponent();
        }
        public void InBaoCao(DataTable dsReport)
        {

            this.DataSource = dsReport;

            this.txtSott.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", dsReport,"stt")});

            this.txtThuoctinh.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", dsReport,"tenthuoctinh")});

            this.txtLoaihang.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", dsReport,"tenhh")});

            this.txtGiatri.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", dsReport,"giatri")});

            this.txtGhichu.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
            new DevExpress.XtraReports.UI.XRBinding("Text", dsReport,"ghichu")});
        }
    }
}
